﻿<UserControl x:Class="RiaCrm.DynamicEntityGrid.DynamicEntityGridView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Acando.Dynamics.CRM.Silverlight.Library.Controls;assembly=Acando.Dynamics.CRM.Silverlight.Library"
    xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
    xmlns:Commands="clr-namespace:Microsoft.Practices.Composite.Presentation.Commands;assembly=Microsoft.Practices.Composite.Presentation"
    >
    <Grid x:Name="LayoutRoot" ShowGridLines="True">
        <local:SelectableDataGrid x:Name="ViewDataGrid" 
                                  AutoGenerateColumns="False"
                                  SelectionMode="Single"
                                  RowBackground="#FFFFFF"
                                  SelectedItem="{Binding Mode=TwoWay, Path=CurrentItem}"
                                  ItemsSource="{Binding Mode=OneWay, Path=Items}"
                                  AlternatingRowBackground="#EEEEEE" 
                                  BorderBrush="#FFCCCCCC"
                                  />
        <local:LoadingPanelControl x:Name="pnlLoading" Visibility="Collapsed"/>
    </Grid>
</UserControl>
